class PhotosController < ApplicationController
  def index
    
    
  end
  
  def photo
    @picture = Picture.find(params[:id])
    send_data(@picture.data,
    :filename => @picture.name,
    :type => @picture.content_type,
    :disposition => "inline")
  end
  

  
end
